package com.ynet.middleground.riskmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @ClassName PurchaseInvoiceHistoryInfo
 * @Description 采购中心发票历史信息
 * @Author zhangyongbin
 * @Date 2020/8/14 10:29
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rm_purchase_invoice_resp_history")
public class PurchaseInvoiceHistoryInfo extends Model<PurchaseInvoiceHistoryInfo> {

    private static final long serialVersionUID = -4121476255296880488L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发票后6位编号（可作为数据中的主键）
     */
    private String billnum;

    /**
     * 开票日期
     */
    private LocalDate billtime;

    /**
     * 票面金额
     */
    private Double billmoney;

    /**
     * 渠道
     */
    private String channel;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 创建者
     */
    private Integer createBy;

    /**
     * 更新时间
     */
    private LocalDateTime gmtModified;

    /**
     * 更新者
     */
    private Integer modifiedBy;

    @Override
    protected Serializable pkVal() {
        return this.pkVal();
    }
}
